@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row main">
            <div class="col-md-2">
                <div class="panel panel-default">
                    <div class="panel-heading">会员中心</div>
                    <ul class="list-group">
                        <li class="list-group-item"><a href="/venue/create">创建场馆</a> </li>
                        <li class="list-group-item"><a href="/venue/my_venues">我的场馆</a> </li>
                        <li class="list-group-item"><a href="/venue/my_follows">我的收藏</a> </li>
                        <li class="list-group-item"><a href="/user/set_icon">设置头像</a> </li>
                        <li class="list-group-item"><a href="/logout">退出登录</a> </li>
                    </ul>
                </div>

            </div>
            <div class="col-md-10">
                <div class="panel panel-default">
                    <div class="panel-heading">价格维护</div>
                    <div class="panel-body">

                        <h3>{{$venue->name}}</h3>
                        <p>{{$venue->address}}</p>
                        <p>{{$venue->des}}</p>
                        <table class="table price-table table-striped">
                            <tr>
                                <th>id</th>
                                <th>时段</th>
                                <th>价格</th>
                                <th>编辑</th>
                            </tr>
                            @foreach($prices as $price)
                            <tr>
                                <td>{{$price->id}}</td>
                                <td>{{$price->time}}</td>
                                <td><input type="text" value="{{$price->price}}"></td>
                                <td><button class="btn btn-sm btn-info save_price">保存</button></td>
                            </tr>
                            @endforeach
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
